/**
* Copyright 2009, Jethro Grassie, Creative Jar Technology Ltd (http://www.cjtech.co.uk)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
**/

package com.adobe.cairngorm.commands;

import com.adobe.cairngorm.control.CairngormEvent;
import com.adobe.cairngorm.control.CairngormEventDispatcher;

public class SequenceCommand extends Command 
{      
    public var nextEvent:CairngormEvent;       

    public override function execute(event:CairngormEvent):Void 
    {
    }

    public function executeNextCommand():Void
    {
        var isSequenceCommand:Boolean = (nextEvent != null);
        if(isSequenceCommand)
            CairngormEventDispatcher.getInstance().dispatchEvent(nextEvent);
    }
}

